// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_INV_WH_ITEM_EX
// * CreateDate    : 2014-01-11 2:12:22
// * Creater       : CodeSmith
// * LastChangeDate: 2014-01-11 2:12:22
// * LastChanger   : 2014-01-11 2:12:22
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Suzsoft.Smart.Data;
using ESOL.Common.Entity;

namespace ESOL.Business.Inv
{
/// <summary>
    /// InvWhItemEx
    /// </summary>
    public partial class InvWhItemExBs
    {
        #region GetByID
        /// <summary>
        /// Get Entity
        /// </summary>
        /// <param name="objInvWhItemExEntity">Entity</param>
        /// <returns>Entity</returns>
        public static InvWhItemExEntity GetInvWhItemEx(InvWhItemExEntity objInvWhItemExEntity)
        {
            return DataAccess.SelectSingle<InvWhItemExEntity>(objInvWhItemExEntity);
        }
        #endregion


        #region Insert
        /// <summary>
        /// Insert Data
        /// </summary>
        /// <param name="objInvWhItemExEntity">Entity</param>
        /// <returns>true Insert Succeed; false Insert Fail</returns>
        public static bool InsertInvWhItemEx(InvWhItemExEntity objInvWhItemExEntity)
        {
            return DataAccess.Insert(objInvWhItemExEntity);
        }

        public static bool InsertInvWhItemEx(List<InvWhItemExEntity> objInvWhItemExEntityList)
        {
            return DataAccess.Insert(objInvWhItemExEntityList);
        }
        #endregion


        #region Update
        /// <summary>
        /// Update Data
        /// </summary>
        /// <param name="objInvWhItemExEntity">Entity</param>
        /// <returns>true Update Succeed; false Update Fail</returns>
        public static bool UpdateInvWhItemEx(InvWhItemExEntity objInvWhItemExEntity)
        {
            return DataAccess.Update(objInvWhItemExEntity);
        }

        public static bool UpdateInvWhItemEx(List<InvWhItemExEntity> objInvWhItemExEntityList)
        {
            return DataAccess.Update<InvWhItemExEntity>(objInvWhItemExEntityList);
        }
        #endregion


        #region Delete
        /// <summary>
        /// Delete Data
        /// </summary>
        /// <param name="objInvWhItemExEntity">Entity</param>
        /// <returns>true Delete Succeed; false Delete Fail</returns>
        public static bool DeleteInvWhItemEx(InvWhItemExEntity objInvWhItemExEntity)
        {
            return DataAccess.Delete(objInvWhItemExEntity);
        }

        public static bool DeleteInvWhItemEx(List<InvWhItemExEntity> objInvWhItemExEntityList)
        {
            return DataAccess.Delete<InvWhItemExEntity>(objInvWhItemExEntityList);
        }
        #endregion


        #region GetAll
        /// <summary>
        /// Get All Data
        /// </summary>
        /// <returns>Back All Data<returns>
        public static DataSet GetInvWhItemExAll()
        {
            return DataAccess.SelectAllDataSet<InvWhItemExEntity>();
        }
        /// <summary>
        /// Get All Data List
        /// </summary>
        /// <returns>Back All Data List<returns>
        public static List<InvWhItemExEntity> GetInvWhItemExAllList()
        {
            return DataAccess.SelectAll<InvWhItemExEntity>();
        }
        #endregion

        public static DataSet GetAllDsBySql(string sql)
        {
            return DataAccess.SelectDataSet(sql);
        }
	}
	
	
}	

